package com.hy.service.impl;

import com.hy.mapper.CityMapper;
import com.hy.pojo.City;
import com.hy.service.CityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CityServiceImpl implements CityService {
    @Autowired
    CityMapper cityDao;

    @Override
    public List< City > findCity( Integer provinceId ) {
        List<City> list = cityDao.findCity( provinceId );
        return list;
    }
}
